package IntroScene2;

import Picture.GameImage;

import javax.swing.*;
import java.awt.*;

public class PicPanel extends JPanel {
    int p_width = 0;
    int p_height = 0;
    Image im = null;
    int i = 0; //temp var
    public PicPanel(){

        ImageIcon imageIcon = new ImageIcon("src/Picture/介绍/book1.png");
        im = imageIcon.getImage();
        p_width = imageIcon.getIconWidth();
        p_height = imageIcon.getIconHeight();
        setBounds(0,0,p_width, p_height);
    }
    public void paint(Graphics g ){
        g.drawImage(im,-20,-1050,p_width,p_height,null);
    }





}